package com.Brewing.springboot.service.TpVideos;

import java.util.List;

import com.Brewing.springboot.common.PagedResult;
import com.Brewing.springboot.entity.TpComments.TpComments;
import com.Brewing.springboot.entity.TpVideos.TpVideos;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Company: </p>
 * @author  庄磊
 * @date	2018年12月26日 上午10:24:28 
 * @version 1.0
 */
public interface VideoService {
	/**
	 * 保存视频
	 * */
	public String saveVideo(TpVideos videos);
	
	/**
	 * @Title:             updateVideo
	 * @Description:     修改视频的封面
	 */
	public void updateVideo(String videoId,String coverPath);
	
	/**
	 * @Title:             getAllVideos
	 * @Description:     分页查询视频列表
	 */
	public PagedResult getAllVideos(TpVideos videos,Integer isSaveRecord,Integer page,Integer pageSize);
	
	/**
	 * @Title:             getHotWords
	 * @Description:     获取热搜词列表
	 */
	public List<String> getHotwords();
	/**
	 * @Title:             saveComment
	 * @Description:     保存留言
	 */
	public void saveComment(TpComments comment);

	/**
	 * @Title:             getAllComments
	 */
	public PagedResult getAllComments(String videoId, Integer page, Integer pageSize);

	/**
	 * @Title:             userLikeVideo
	 */
	public void userLikeVideo(String userId, String videoId, String videoCreaterId);

	/**
	 * @Title:             userUnLikeVideo
	 */
	public void userUnLikeVideo(String userId, String videoId, String videoCreaterId);

	/**
	 * @Title:             queryMyFollowVideos
	 */
	public PagedResult queryMyFollowVideos(String userId, Integer page, int pageSize);

	/**
	 * @Title:             queryMyLikeVideos
	 */
	public PagedResult queryMyLikeVideos(String userId, Integer page, Integer pageSize);

	/**
	 * @Title:             likeComment
	 */
	public void likeComment(String id);
	
}
